package com.xjtu.chapter04.ex4_1;

/**
 * @author yjq
 * @version 1.0
 * @date 2021/8/13 11:52
 */
public class ProductTest {
    public static void main(String[] args) {
        Computer apple = new Computer();
        apple.id = 123;
        apple.name="Mac";
        apple.categories="laptop";
        System.out.println(apple.getName());
        System.out.println(apple.getCategories());

        Laptop mac = new Laptop();
        mac.name="myMac";
        mac.weight = 20;
        mac.thickness = 1.2;
        System.out.println(mac.getName());
        System.out.println(mac.getProcessName());
        System.out.println(mac.getThickness());
    }
}
